<?php
/**
 *      [迷你云] (C)2009-2012 南京恒为网络科技.
 *   软件仅供研究与学习使用，如需商用，请访问www.miniyun.cn获得授权
 * 
 */
?>
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title><?php echo Yii::app()->params["app"]["name"] ?>，我的云盘！ 爱分享 云生活</title>
<link rel="stylesheet" type="text/css" href="/<?php echo(Yii::app()->params['app']['host'])?>/statics/web/css/account.css?v=<?php echo(Yii::app()->params['app']['version'])?>" media="all" />
<link rel="stylesheet" type="text/css" href="/<?php echo(Yii::app()->params['app']['host'])?>/statics/web/setting/css/style.css?v=<?php echo(Yii::app()->params['app']['version'])?>" media="all" />
<script type="text/javascript">document.domain=window.location.host;</script>
<script type="text/javascript">document.domain=window.location.host;</script>
<script src="/<?php echo(Yii::app()->params['app']['host'])?>/statics/web/js/jquery_min.js?v=<?php echo(Yii::app()->params['app']['version'])?>" type="text/javascript"></script>
<script src="/<?php echo(Yii::app()->params['app']['host'])?>/statics/web/js/util.js?v=<?php echo(Yii::app()->params['app']['version'])?>" type="text/javascript"></script>
<script src="/<?php echo(Yii::app()->params['app']['host'])?>/statics/web/setting/js/tip.js?v=<?php echo(Yii::app()->params['app']['version'])?>" type="text/javascript"></script>
<script src="/<?php echo(Yii::app()->params['app']['host'])?>/statics/web/setting/js/common_set_validate.js?v=<?php echo(Yii::app()->params['app']['version'])?>" type="text/javascript"></script>

</head>
<body>
<style type="text/css" media="screen">
    #flashContent { display:none; }
</style>
<link rel="stylesheet" type="text/css" href="/<?php echo(Yii::app()->params['app']['host'])?>/statics/web//face/history/history.css?v=<?php echo(Yii::app()->params['app']['version'])?>" />
<script type="text/javascript" src="/<?php echo(Yii::app()->params['app']['host'])?>/statics/web//face/history/history.js?v=<?php echo(Yii::app()->params['app']['version'])?>"></script>
<script type="text/javascript" src="/<?php echo(Yii::app()->params['app']['host'])?>/statics/web//face/swfobject.js?v=<?php echo(Yii::app()->params['app']['version'])?>"></script>
<script type="text/javascript">
    <!-- For version detection, set to min. required Flash Player version, or 0 (or 0.0.0), for no version detection. -->
    var swfVersionStr = "10.2.0";
    <!-- To use express install, set to playerProductInstall.swf, otherwise the empty string. -->
    var xiSwfUrlStr = "/<?php echo(Yii::app()->params['app']['host'])?>/statics/web//face/playerProductInstall.swf";
    var flashvars = {};
    var params = {};
    params.quality = "high";
    params.bgcolor = "#ffffff";
    params.allowscriptaccess = "sameDomain";
    params.allowfullscreen = "true";
    var attributes = {};
    attributes.id = "Main";
    attributes.name = "Main";
    attributes.align = "left";
    swfobject.embedSWF(
    "/<?php echo(Yii::app()->params['app']['host'])?>/statics/web//face/Main.swf?t=1323158858&upload_url=/?ctl=account&action=upload_face&cookie=cookieValue&isexists=true&header_pic_url=/<?php echo(Yii::app()->params['app']['host'])?>/statics/web//images/face_default.png?_t=1323158858", "flashContent",
    "750", "516",
    swfVersionStr, xiSwfUrlStr,
    flashvars, params, attributes);
    <!-- JavaScript enabled so display the flashContent div in case it is not replaced with a swf object. -->
    swfobject.createCSS("#flashContent", "display:block;text-align:left;");
</script>
<script type="text/javascript">
    var ASFace = (function(){
        return {
            result: function(res){//成功连接服务端并返回数据后调用此方法 msg is a object;
                if(res.state){
                    window.location.reload();
                }else{
                    alert('error'+res.message);
                }
            },
            fault: function(obj){
                alert("Error:"+obj.message);
            }
        }
    })();
</script>
<div style="margin:0 10px;">
    <p class="border-bottom s-safe-title"><strong>修改头像</strong></p>

    <div class="set-head">

        <div id="flashDiv">
            <div id="flashContent" style="overflow:hidden" >
            <p>
	        	To view this page ensure that Adobe Flash Player version
				10.2.0 or greater is installed.
            </p>
            <script type="text/javascript">
                var pageHost = ((document.location.protocol == "https:") ? "https://" :	"http://");
                document.write("<a href='http://www.adobe.com/go/getflashplayer'><img src='"
                    + pageHost + "www.adobe.com/images/shared/download_buttons/get_flash_player.gif' alt='Get Adobe Flash player' /></a>" );
            </script>


            <noscript>
                <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="750" height="516" id="Main">
                    <param name="movie" value="Main.swf" />
                    <param name="quality" value="high" />
                    <param name="bgcolor" value="#ffffff" />
                    <param name="allowScriptAccess" value="sameDomain" />
                    <param name="allowFullScreen" value="true" />
                    <!--[if !IE]>-->
                    <object type="application/x-shockwave-flash" data="Main.swf" width="750" height="516">
                        <param name="quality" value="high" />
                        <param name="bgcolor" value="#ffffff" />
                        <param name="allowScriptAccess" value="sameDomain" />
                        <param name="allowFullScreen" value="true" />
                        <!--<![endif]-->
                        <!--[if gte IE 6]>-->
                        <p>
                		Either scripts and active content are not permitted to run or Adobe Flash Player version
                		10.2.0 or greater is not installed.
                        </p>
                        <!--<![endif]-->
                        <a href="http://www.adobe.com/go/getflashplayer">
                            <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash Player" />
                        </a>
                        <!--[if !IE]>-->
                    </object>
                    <!--<![endif]-->
                </object>
            </noscript>
        </div>

    </div>
</div>
<script type="text/javascript">
	document.domain=window.location.host;
	$(function(){
		if(!parent.window.isFrame && parent.window.location.hash == ""){
			var href=window.location.href;
			window.location.href="<?php echo(Yii::app()->params['app']['host'])?>/index.php?r=setting/index&ac="+window.location.href.substring(href.indexOf("=")+1,href.length);
		}
	})
</script><script>
         $('#js_show_save').click(function(){
         $('#flashDiv').show();
         $('#js_save_txt').hide();
    });
</script>
</body>
</html>